﻿using DAL.Register;
using Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAL
{
    public class LoginDAL
    {
        /// <summary>
        /// 查询账号密码
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public DataTable Admin(AdminInfo model)
        {
            string sql = $"select AdminID,AdminPWD from AdminInfo where AdminID=@AdminID";
            SqlParameter[] sqlp = {
            new SqlParameter("@AdminID",model._adminID),
            };
            return SQLHelper.Query(sql, sqlp);
        }
    }
}
